package com.codeavatar.hardwaretester.service;

import android.app.Service;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.Intent;
import android.os.IBinder;

import androidx.annotation.Nullable;

import com.codeavatar.catools.helper.CaLogHelper;

/**
 * +----------------------------------------------------------------------
 * | @Author: codeavatar   @Year：2022
 * +----------------------------------------------------------------------
 * | @Email: codeavatar@aliyun.com
 * +----------------------------------------------------------------------
 **/
public class NfcService extends Service {

    private final String TAG = this.getClass().getSimpleName();

    static final int SID = 0x90002;

    //++++++++++++++++++++++++++++++++++++++
    //++ 内部方法
    //++++++++++++++++++++++++++++++++++++++

    private void stopService(){
        this.stopSelf();
    }

    //++++++++++++++++++++++++++++++++++++++
    //++ 重写方法
    //++++++++++++++++++++++++++++++++++++++

    @Override
    public void onCreate() {
        CaLogHelper.info(TAG,"onCreate");
        super.onCreate();
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        CaLogHelper.info(TAG,"onStartCommand");
        return super.onStartCommand(intent, flags, startId);
    }

    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        CaLogHelper.info(TAG,"onBind");
        return null;
    }

    @Override
    public void onRebind(Intent intent) {
        CaLogHelper.info(TAG,"onRebind");
        super.onRebind(intent);
    }

    @Override
    public boolean onUnbind(Intent intent) {
        CaLogHelper.info(TAG,"onUnbind");
        return super.onUnbind(intent);
    }

    @Override
    public void onDestroy() {
        CaLogHelper.info(TAG,"onDestroy");
        super.onDestroy();
    }
}
